<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<load href="../Public/js/MyDate/WdatePicker.js"/>
<script type="text/javascript" src="../Public/js/jquery.js" ></script>
<script type="text/javascript">
	$(function(){
		$("#btnClose").click(function(){
			$("#DialogDiv").css("display","none");
		});

		$("#category_select").change(function(){
			$("#form_select").submit();
		});

		$("#guanjianzi_sb").click(function(){
			$("#form_guanjianzi").submit();
		});

		$("#date_sb").click(function(){
			$("#form_date").submit();
		});

		$("#pv_sb").click(function(){
			$("#form_pv").submit();
		});
		$("#ip_sb").click(function(){
			$("#form_ip").submit();
		});
		$("#uv_sb").click(function(){
			$("#form_uv").submit();
		});
	});

	function fuzhi(id){
		$("#DialogDiv").css("display","block");
		$("#input_val").val("http://www.bd2013.com/lxf_shoujutongji/index.php?g=Home&m=Index&a=index&id="+id);

		$("#DialogDiv").css({
				cursor:	'pointer',
				position: "relative", 
		        left: "300px",  
		        top:  "-300px",
		        height: "100px",
		        
		        zIndex:'9999'

		});
//		alert(docheight);
	}

	
</script>
<script language="javascript"> 
function copyToClipboard()
{
	var input_value = $("#input_val").val(); 
	window.clipboardData.clearData(); 
	window.clipboardData.setData("Text", input_value); 
   
}
</script>
<style type="text/css">
body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #333; }
#DialogDiv{ width:400px; height:100px; border:1px solid #CCC; padding:10px;}
#btnClose{ float:right; font-size:12px;}
.input_html{ line-height:23px; height:23px;}
.input_html input{ float:left; padding-right:5px;}
</style>
</head>

<body>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border: 1px solid #787878;">
  <tr align="left" valign="top" bgcolor="#f2f2f2">
    <td height="472" ><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" style="padding-bottom:20px;">
        <tr align="center" valign="top" bgcolor="#d8d8d8">
          <td height="40"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #787878; padding:0px 10px 0px 10px;">
              <tr align="left" valign="middle">
                <td width="20%"><table width="92%" border="0" align="left" cellpadding="0" cellspacing="0" style="padding-left:5px;">
                    <tr align="left" valign="middle">
                      <td width="24" height="40" align="right"> 类别</td>
                      <td width="109">
                      <form action="{:U('Dataflow/index')}" method="post" id="form_select">
                      <select name="category_select" id="category_select">
                          <option <if condition="$app_sort eq 3 ">selected=""</if> value="3">全部</option>
                          <option <if condition="$app_sort eq 1 ">selected=""</if> value="1">app</option>
                          <option <if condition="$app_sort eq 2 ">selected=""</if> value="2">网站</option>
                        </select>
                        </form>
                        </td>
                       
                    </tr>
                  </table></td>
                <td width="26%"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                    <tr align="left" valign="top">
                      <td width="83" valign="middle">关键字</td>
                      <td width="129" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr align="left">
                            <td width="38%" valign="middle">
                            <form action="{:U('Dataflow/index')}" method="post" id="form_guanjianzi">
                            <input type="text" size="15" maxlength="12" name="guanjianzi"/>
                            </form>
                            </td>
                            <td width="62%" valign="middle"><a href="#"><img src="../Public/images/fdj.jpg" width="24" height="24" id="guanjianzi_sb"/></a></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
                  
                <td width="33%"><form action="{:U('Dataflow/index')}" method="post" id="form_date"><table width="54%" border="0" align="center" cellpadding="0" cellspacing="0">
                
                    <tr align="left" valign="middle">
                      <td width="20%"><input  class="Wdate input-text"  name="startdate" type="text" id="startdate" size="14" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="
<?php 
if($_REQUEST['startdate']){
//echo date('Y-m-d',$_REQUEST['startdate']);
echo $_REQUEST['startdate'];  
}else{
echo date('Y-m-d'); 
}
?>
" /></td><td>至</td>
                      <td width="20%"><input  class="Wdate input-text"  name="enddate" type="text" id="enddate" size="14" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'<?php echo date('Y-m-d');?>'})" value="
<?php 
if($_REQUEST['enddate']){
//echo date('Y-m-d',$_REQUEST['enddate']);
echo $_REQUEST['enddate'];  
}else{
echo date('Y-m-d'); 
}
?>
" /></td>
                      <td width="60%"><a href="#"><img src="../Public/images/shearch.jpg" width="60" height="23" id="date_sb"/></a></td>
                    </tr>
                  </table>
                  </form>
                  </td>
                <td width="21%" align="center" valign="middle"><a href="{:U('Dataflow/add_link')}">添加链接</a></td>
              </tr>
            </table></td>
        </tr>
        <tr valign="top">
          <td height="413"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr align="left" valign="middle">
                <td height="45"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                    <tr align="left">
                      <td width="43">排序：</td>
                      <td width="66"><form action="{:U('Dataflow/index')}" method="post" id="form_pv"><input type="hidden" name="in_pv_ip_uv" value="pv"/><img src="../Public/images/pv.jpg" width="60" height="23" id="pv_sb"/></form></td>
                      <td width="66"><form action="{:U('Dataflow/index')}" method="post" id="form_ip"><input type="hidden" name="in_pv_ip_uv" value="ip"/><img src="../Public/images/ip.jpg" width="60" height="23" id="ip_sb"/></form></td>
                      <td width="66"><form action="{:U('Dataflow/index')}" method="post" id="form_uv"><input type="hidden" name="in_pv_ip_uv" value="uv"/><img src="../Public/images/uv.jpg" width="65" height="23" id="uv_sb"/></form></td>
                      <td width="484"><a href="{:U('Dataflow/index',array('link_jin'=>1))}">今天</a>&nbsp;&nbsp;<a href="{:U('Dataflow/index',array('link_date'=>1))}">昨天</a>&nbsp;&nbsp;<a href="{:U('Dataflow/index',array('link_date'=>7))}">7天</a>&nbsp;&nbsp;<a href="{:U('Dataflow/index',array('link_date'=>30))}">30天</a></td>
                    </tr>
                  </table></td>
              </tr>
              <tr align="left" valign="top">
                <td style="border-left:1px solid #cacaca; border-top:1px solid #cacaca;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr align="center" valign="middle">
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">序号</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">app</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">类别</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">ip</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">pv</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">uv</td>
                      <td width="8%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">小时统计</td>
                      <td width="8%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">天数统计</td>
                      <td width="20%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">编辑</td>
                    </tr>
                    <volist name="list" id="vo">
                    <tr align="center" valign="middle">
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">{$vo.id}</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><a href="#" onclick="fuzhi({$vo.id})">{$vo.app_name}</a></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><if condition="$vo['app_sort'] eq 1"> app</if><if condition="$vo['app_sort'] eq 2"> 网站</if></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">{$vo.ip}</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">{$vo.pv}</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">{$vo.uv}</td>
                      <td width="8%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><a href="{:U('Dataflow/view_index',array('app_id'=>$vo[id]))}">view</a></td>
                      <td width="8%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><a href="{:U('Dataflow/day_view_index',array('app_id'=>$vo[id]))}">view</a></td>
                      <td width="20%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"><a href="{:U('Dataflow/edit_index',array('app_id'=>$vo[id]))}">编辑</a></td>
                    </tr>
                    </volist>
                   <tr align="center" valign="middle">
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">总计</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"></td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">{$all_total_ip}</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">{$all_total_pv}</td>
                      <td width="12%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;">{$all_total_uv}</td>
                      <td width="8%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"></td>
                      <td width="8%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"></td>
                      <td width="20%" height="20" style=" border-bottom:1px solid #cacaca; border-right:1px solid #cacaca;"></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<div id="DialogDiv" style="display:none">
<h2>渠道链接<a href="#" id="btnClose">关闭</a></h2>
    <div class="input_html">
   <input type="text" size="30" maxlength="30" id="input_val"/>
   <a href="#"><img src="../Public/images/copy.jpg" width="60" height="23" onclick="copyToClipboard();"/></a> 
   </div>
</div>

</body>
</html>
